package com.yusp75.myexam.data

import androidx.room.Dao
import androidx.room.Query

class LearningStrategy(
    private val questionDao: QuestionDao,
    private val recordDao: ExerciseRecordDao
) {
    // 题型常量
    companion object {
        const val CHOICE_TYPE = "选择"
        const val JUDGE_TYPE = "判断"
        const val BATCH_SIZE = 50
    }

    suspend fun getAdaptiveQuestions(bookId: Int): List<Question> {
        return questionDao.getAdaptedQuestions(
            bookId = bookId
        )
    }
}


